package Lesson18Homework;

public class Demo {

	public static void main(String[] args) 
	{		
		Person[] persons = new Person[10];
		
		//Person person = new Person(10);
		
		Person p = new Person("Penko" , 22, true){};
		Person s = new Employee("Stoqn" , 34, true, 100);
		
		//p.addPerson(p);
		//s.addPerson(s);
		
		
	/*	// Person p1 = new Person("P1", 17, true);
		// Person p2 = new Person("P2", 18, true);
		// persons[0] = p1;
		// persons[1] = p2;

		Student st1 = new Student("St1", 18, true, 4.5);
		Student st2 = new Student("St2", 19, false, 5.55);
		persons[2] = st1;
		persons[3] = st2;

		Employee em1 = new Employee("Em1", 17, false, 45.50);
		Employee em2 = new Employee("Em2", 25, true, 55.09);
		persons[4] = em1;
		persons[5] = em2;

		for (int i = 0; i < persons.length; i++) {
			if (persons[i] != null) {
				persons[i].showInfo();
				System.out.println();
			}
		}

		for (int i = 0; i < persons.length; i++) {
			if (persons[i] != null) {
				persons[i].calculateOvertime(2);
			}
		}
*/	
	}

}
